
Pod::Spec.new do |s|

  s.name         = "MMIFlyFramework"
  s.version      = "0.1.6"
  s.summary      = "上海燃点记忆大师IFly framework化"

  s.description  = <<-DESC
                   上海燃点记忆大师IFly framework化
                   DESC

  s.homepage     = "https://gitee.com/jingtao910429/MMIFlyFramework.git"

  s.license      = "MIT"

  s.author       = "https://gitee.com/jingtao910429"

  s.platform     = :ios, "8.0"

  s.source       = { :git => "https://gitee.com/jingtao910429/MMIFlyFramework.git"}

  s.frameworks = 'Foundation', 
  'AVFoundation', 
  'SystemConfiguration', 
  'CoreTelephony', 
  'AudioToolbox', 
  'UIKit', 
  'CoreLocation', 
  'Contacts',
  'AddressBook',
  'CoreGraphics',
  'CFNetwork'

  s.libraries = "z"

  s.requires_arc = true

  s.subspec 'iflyMSC' do |subspec|
    subspec.source_files = 'MMIFlyFramework/iflyMSC.framework/Headers/*.h'
    subspec.vendored_frameworks = 'MMIFlyFramework/iflyMSC.framework'
  end

  # s.prepare_command     = <<-EOF
  # mkdir MMIFlyFramework/iflyMSC.framework/Modules
  # touch MMIFlyFramework/iflyMSC.framework/Modules/module.modulemap
  # cat <<-EOF > MMIFlyFramework/iflyMSC.framework/Modules/module.modulemap
  # framework module iflyMSC {
  #    header "IFlyAudioSession.h"
  #    header "IFlyContact.h"
  #    header "IFlyDataUploader.h"
  #    header "IFlyDebugLog.h"
  #    header "IFlyISVDelegate.h"
  #    header "IFlyISVRecognizer.h"
  #    header "IFlyMSC.h"
  #    header "IFlyPcmRecorder.h"
  #    header "IFlyRecognizerView.h"
  #    header "IFlyRecognizerViewDelegate.h"
  #    header "IFlyResourceUtil.h"
  #    header "IFlySetting.h"
  #    header "IFlySpeechConstant.h"
  #    header "IFlySpeechError.h"
  #    header "IFlySpeechEvaluator.h"
  #    header "IFlySpeechEvaluatorDelegate.h"
  #    header "IFlySpeechEvent.h"
  #    header "IFlySpeechRecognizer.h"
  #    header "IFlySpeechRecognizerDelegate.h"
  #    header "IFlySpeechSynthesizer.h"
  #    header "IFlySpeechSynthesizerDelegate.h"

  #    header "IFlySpeechUnderstander.h"
  #    header "IFlySpeechUtility.h"
  #    header "IFlyTextUnderstander.h"
  #    header "IFlyUserWords.h"
  #    header "IFlyVoiceWakeuper.h"
  #    header "IFlyVoiceWakeuperDelegate.h"
  #    export *
  #    link "z"
  # }
  # \EOF
  # EOF

  s.user_target_xcconfig =  {'OTHER_LINKER_FLAGS' => ['-lObjC','-all_load']}
  s.pod_target_xcconfig = {'OTHER_LDFLAGS' => ['-lObjC','-all_load']}

end
